//
//  AbstractFactoryTest.m
//  DesignMode
//
//  Created by orvibo on 2018/12/29.
//  Copyright © 2018 Alic. All rights reserved.
//

#import "AbstractFactoryTest.h"

#import "AbstractDataFactory.h"
#import "SaveStudentInfo.h"
#import "SearchStudentInfo.h"

@implementation AbstractFactoryTest

-(void)test{
    
    AbstractDataFactory *factory = [AbstractDataFactory getAExactFactory];
    SaveStudentInfo *studentInfo = [factory createStudentInfo];
    SearchStudentInfo *searchInfo = [factory searchStudentInfo];
    
    [studentInfo saveStudentInfo];
    [searchInfo searchStudents];
}

@end
